<span id="${uuid}"></span>
<div class="box_tc_s">
    <form data-id="form-directory-info" method="post"
          action="${pageContext.request.contextPath}/app/api/directory/addDirectory"
          name="form-directory-add">
        <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left">字典项值：</td>
                <td class="hydra-right"><input type="text" data-id="dirValue"
                                               name="dirValue" class="easyui-validatebox hydra-input-width"
                                               data-options="required:true,validType:['length[0,20]']"
                                               placeholder="字典项值.." value=""/></td>
            </tr>
            <tr class="hydra-tr-bg">
                <td class="hydra-left">字典项编码：</td>
                <td class="hydra-right">
                    <input type="text" data-id="dirCode"
                           name="dirCode" class="easyui-validatebox hydra-input-width"
                           data-options="validType:['length[0,50]']"
                           placeholder="不填写系统会自动生成.." value=""/></td>
            </tr>
            <tr>
                <td class="hydra-left">所属字典组：</td>
                <td class="hydra-right">
                    <select name="dirGroup" class="easyui-validatebox easyui-combobox hydra-input-width">
                        <c:forEach items="${directoryTypes}" var="directoryType">
                            <c:if test="${directoryType.display}">
                                <option value="${directoryType.dirGroup}">${directoryType.dirGroupValue}</option>
                            </c:if>
                        </c:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="hydra-left">字典项序号：</td>
                <td class="hydra-right">
                    <input type="text" autocomplete="off" name="dirOrder"
                           class="easyui-numberbox hydra-input-width"
                           data-options="required:true,min:0" value="0"/>
                </td>
            </tr>
            <tr>
                <td class="hydra-left">字典项配置1：</td>
                <td class="hydra-right">
                    <textarea data-id="dirConfig" name="dirConfig"
                              placeholder="字典项配置" data-options="validType:['normalChar','length[0,200]']"
                              class="easyui-validatebox hydra-input-width hydra-textarea"></textarea>
                </td>
            </tr>
            <tr>
                <td class="hydra-left">字典项配置2：</td>
                <td class="hydra-right">
                    <textarea data-id="dirConfig1" name="dirConfig1"
                              placeholder="字典项配置" data-options="validType:['normalChar','length[0,200]']"
                              class="easyui-validatebox hydra-input-width hydra-textarea"></textarea>
                </td>
            </tr>
            <tr>
                <td class="hydra-left">字典项描述：</td>
                <td class="hydra-right">
                    <textarea data-id="dirDescription" name="dirDescription"
                              placeholder="字典项描述" data-options="validType:['normalChar','length[0,200]']"
                              class="easyui-validatebox hydra-input-width hydra-textarea"></textarea>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    seajs.use(["apps/directory/main"], function (page) {
        page.add("${pageContext.request.contextPath}", "${uuid}");
    });
</script>